package com.example.ormsqlsplicingframe1;

import com.example.ormsqlsplicingframe1.orm.entity.SysUser;
import com.example.ormsqlsplicingframe1.session.SessionUtil;
import com.example.ormsqlsplicingframe1.warpper.SelectSqlWrapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class DemoServiceTow {


    public void aa(){
        SysUser user = SelectSqlWrapper.newSelectSqlWrapper(SysUser.class).where(where -> where.eq("id", 3l)).selectOnt().createSyncProxy();
        user.setNickName("77754");
        SelectSqlWrapper.newSelectSqlWrapper(SysUser.class).where(where -> where.eq("id", 3l)).selectOnt().createSyncProxy();
        SelectSqlWrapper.newSelectSqlWrapper(SysUser.class).where(where -> where.eq("id", 3l)).selectOnt().createSyncProxy();

    }

}
